﻿<DemoContainer>
    <ApexChart TItem="Order"
               Title="Order Gross Value">

        <ApexPointSeries TItem="Order"
                    Items="Orders"
                    SeriesType="SeriesType.Donut"
                    Name="Gross Value"
                    XValue="@(e => e.Country)"
                    YAggregate="@(e => e.Sum(e => e.GrossValue))"
                    OrderByDescending="e=>e.Y" />
    </ApexChart>
</DemoContainer>

@code {
    private List<Order> Orders { get; set; } = SampleData.GetOrders();
    }